﻿using VisualWip.Core;
using VisualWip.Core.Interfaces;

namespace VisualWip.CoreTests
{
    class MySimpleChildClass : IPersistable
    {
        public string ChildName { get; set; }

        public PersistenceTree Persist(string name)
        {
            var settings = new PersistenceTree(name, this);
            settings.Add(() => ChildName);
            return settings;
        }

        public void Load(PersistenceTree settings)
        {
            ChildName = settings.Get(() => ChildName,string.Empty);
        }
    }

    class MySimpleChildClassDerived : MySimpleChildClass
    {
    }
}